package com.itheima.Controller;

import com.itheima.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName ConsumCtroller
 * @Description TODO
 * @Author Shinelon
 * @Date DATE 2021/8/31 10:42
 */
@Controller
public class ConsumCtroller {
    @Reference(version = "1")
    DemoService demoService;
    @RequestMapping("/")
    public ResponseEntity my(){
        int s = demoService.hello();
        return  ResponseEntity.ok(s);
    }
}
